﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;


namespace Bookworm.Controls.CustomControls
{
    /// <summary>
    /// Interaction logic for EBookNoteCard.xaml
    /// </summary>
    public partial class EBookNoteCard : UserControl
    {
        public EBookNoteCard()
        {
            InitializeComponent();
        }

        #region Dependency Properties

        #region Title
        public static readonly DependencyProperty TitleProperty = DependencyProperty.Register("Title", typeof (string),
                                                                                              typeof (EBookNoteCard));
        public string Title
        {
            get { return (string) GetValue(TitleProperty); }
            set { SetValue(TitleProperty, value); }
        }
        #endregion Title

        #region Description

        public static readonly DependencyProperty DescriptionProperty = DependencyProperty.Register("Description",
                                                                                                    typeof (string),
                                                                                                    typeof (
                                                                                                        EBookNoteCard));
        public string Description
        {
            get { return (string) GetValue(DescriptionProperty); }
            set {SetValue(DescriptionProperty,value);}
        }
        #endregion Description

        #region Author
        public static readonly DependencyProperty AuthorProperty = DependencyProperty.Register("Author",
                                                                                                   typeof(string),
                                                                                                   typeof(
                                                                                                       EBookNoteCard));
        public string Author
        {
            get { return (string)GetValue(AuthorProperty); }
            set { SetValue(AuthorProperty, value); }
        }


        #endregion Author

        #region Image
        public static readonly DependencyProperty ImageProperty = DependencyProperty.Register("Image",
                                                                                                   typeof(ImageSource),
                                                                                                   typeof(
                                                                                                       EBookNoteCard));
        public ImageSource Image
        {
            get { return (ImageSource)GetValue(ImageProperty); }
            set { SetValue(ImageProperty, value); }
        }

        #endregion Image

        #endregion Dependency Properties

    }
}
